//
//  LevelAchievement.cpp
//  ATM Killer
//
//  Created by USoft on 8/4/14.
//
//

#include "LevelAchievement.h"
LevelAchievement::LevelAchievement() {
    this->comparedLevel = 0;
    this->objective = 0;
}

LevelAchievement::~LevelAchievement() {

}

bool LevelAchievement::init() {
    this->achievementID = -1;
    this->name = "";
    this->description = "";
    this->type = -1;
    this->effectType = -1;
    this->effectPercent = 0.0f;
    return true;
}

bool LevelAchievement::examine(){
    if(this->comparedLevel >= this->objective){
        this->status = NUM_STATUS_UNLOCKED;
        return true;
    } else {
        return false;
    }
}